<?php #coding: utf-8 æ ø å 




	$data['find_ikke'] = $oplevelser_ider;
	$data['type'] = $this->uri->segment(4); 
	$data['stam_id'] = $this->uri->segment(5);
	$data['redirect_soegning'] = base_url()."core/vis/se/".$type."/".$data['stam_id']."/rediger_oplevelser";
	$data['redirect_tilfoej'] = base_url()."core/rediger/tilfoej_oplevelser/";
    $data['omraade'] = "begivenhed";

    echo "<h2 class='rubrik'>Find nye Oplevelser</h2>";
    $this->load->view('soeg/soeg_generel', $data);


?>

<br><br><br>

<div style="overflow:auto;">
    <form action="<?php echo base_url();?>core/rediger/slet_oplevelser" method="post"><?
    ?>
    <input type="hidden" name="stam_id" value="<? echo $stamdata['id']; ?>">

    <input style="float:right" type="submit" class="rubrik" value="Fjern Oplevelser">
    <h2 class="rubrik">Hvad <? echo $navne[0]; ?> har oplevet</h2><br>

    <?

        echo "<div style='float:left;'>";
            echo "<h3 class='rubrik'></h3>";
            echo "<p>";
                foreach($oplevelser as $o)
            {
	
	                ?><input type="checkbox" name="valgt_<? echo $o['id'];?>">
<?                  echo "<b class='ink'>".$o['navn']."</b>"; 
                    echo "<br>";
                  
		            $id_array[] = $o['id']; 
            }
 
	if(isset($id_array)) {$id_array = $this->array_model->post_ider_send($id_array);
	?><input type="hidden" name="id_array" value="<? echo $id_array; ?>"><?
    }
            echo "</p>";
        echo "</div>";


?>
</div>

















<!--div>
<h3>Tilføj Oplevelser</h3><br><br>
<? 
/*
$ikke_deltagere_id = array();
foreach($ikke_deltagere as $s)
{
	$deltagere_id[] = $s['id'];
}*/

	$element = new entitet();
	$element->find_ikke_oplevelser($id);
	$ikke_oplevelser = $element->ikke_oplevelser;

	//print_r($ikke_steder);
	$deltager_kvant = $this->uri->segment(4,0); 


?>
<form style="width:300px;" action="<? echo base_url(); ?>core/rediger/begivenhed_deltager/tilfoej/<? echo $stamdata['id']; ?>" method="post">
	<input type="hidden" name="vinkel" value="entitet">
	<select name="oplevelse_id">
		<?
	
		foreach($ikke_oplevelser as $r)
		{
			
			{
				?>
					<option value="<? echo $r['id']; ?>"><? echo $r['navn']; ?></option>
				<?
			}
		
		}
		?>
	</select>
	<input type="submit" value="tilføj">
</form>
<br><br>

</div-->
